package com.apes.enquiry.product.model;

import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import com.apes.framework.jpa.generator.ApesGenerator;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * 类描述：
 *
 * @ClassName Explain
 * @Description 描述
 * @Author wushilong
 * @Date 2022/11/1 17:26
 * @Version 1.0
 */

@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = Explain.CONST_TABLE_NAME)
public class Explain {
    public static final String CONST_TABLE_NAME = "sp_explain";

    @Id
    @Column(name = "id", length = 6)
    @ApesGenerator(code = CONST_TABLE_NAME, name = "配置规则说明")
    @Comment("编码")
    private String id;

    @Column(name = "page", length = 24)
    @Comment("页面")
    private String page;

    @Column(name = "description", length = 255)
    @Comment("详细信息")
    private String description;
}
